<template>
  <user-list-component :isAdminList="false" :isAdminRole="isAdminRole" ></user-list-component>
</template>
<script>
import userListComponent from './components/userListComponent'
import { mapGetters } from 'vuex'

export default {
  name: 'userList',
  components: {
    userListComponent
  },
  computed: {
    ...mapGetters([
      'roles'
    ]),
    isAdminRole() {
      return this.roles.includes('ADMIN')
    }
  }
}
</script>
